*Use Kemahlioglu SESP 2015 replication dataset
generate illiteracy2013=okumayazmabilmeyen18/toplam18

generate lnpop=ln(toplam18)

gen unempdif=unemp-unemp11

*new businesses
gen toplamacilan=firmnew15+coopnew15+indnew15
gen toplamacilan14=firmnew14+coopnew14+indnew14
gen netacilan=toplamacilan-indnew15-firmliq15-coopliq15-firmclos15-coopclos15-indclos15
gen netacilan14=toplamacilan14-indnew14-firmliq14-coopliq14-firmclos14-coopclos14-indclos14
gen netacilandif=netacilan-netacilan14
generate netacilanth=netacilan/1000

egen mayorvote=rowmax( mhdapar- mbmz)
generate hdpcontrol15=1 if mhdp==mayorvote & mayorvote~=.
replace hdpcontrol15=1 if mbdp==mayorvote & mayorvote~=.
replace hdpcontrol15=0 if hdpcontrol15~=1 & year==2015 & ilcekodu~=. & makpart~=.


*Results (Column 4)
cd C:\data

reg hdpshare illiteracy2013 lnpop unemp unempdif netacilanth hdpcontrol15, cluster(code)
outreg2 using hdptable, bdec(2) excel replace 
